﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using AntiXss = Microsoft.Security.Application;


namespace QRL
{
  public partial class Convert : System.Web.UI.Page
  {

    public string PageUrl
    {
      get { return Request.Params["PageUrl"]; }
    }

    public string PageTitle
    {
      get { return Request.Params["PageTitle"]; }
    }

    public string Selection
    {
      get { return Request.Params["Selection"]; }
    }

    public string Link
    {
      get { return Request.Params["Link"]; }
    }

    public string LinkText
    {
      get { return Request.Params["LinkText"]; }
    }

    public string TextToQr
    {
      get
      {
        string text = Selection ?? Link ?? PageUrl;
        return  text ;
      }
    }

    public string ChartSize
    {
      get
      {
        if ( Request.Params["Preview"] == "1" )
          return "220x220";
        else
          return "400x400";
      }

    }

    protected void Page_Load( object sender, EventArgs e )
    {

    }
  }
}